package com.springcloud.alibaba.sentinel.exception;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.springframework.stereotype.Component;

/**
 * @Author:RenPu
 * @Date: 2020/7/4 16:56
 * @Version: 1.0
 * @description: 全局降级，熔断兜底的方法 注意类名称
 */


public class CustmerBlockHandlerGolable {

    public static String testMenthod1(BlockException bll){
        return "**努力加载中*---global**Exception**try**catch--方法1为你温情提示系统繁忙o(╥﹏╥)o-------请稍后再试";
    }

    public static String testMenthod2(BlockException bll){
        return "**拼命加载中*---global**Exception**try**catch--方法2为你温情提示系统繁忙o(╥﹏╥)o-------请稍后再试";
    }


}
